<template>
  <el-row :gutter="10">
    <el-col v-for="(item, index) in list" :key="index" :span="6" v-show="status === undefined || status === (roleKey ? item.roleResult[roleKey] || 0 : item.status)">
      <div class="item ellipsis" :style="{ backgroundColor: colorLib[roleKey ? item.roleResult[roleKey] || 0 : item.status] }" @click="cellClick(item)">
        <span>第 {{ item.batch }} 批</span>
      </div>
    </el-col>
  </el-row>
</template>
<script>
// 空间
import { recordMixin } from './mixin'
export default {
  name: 'Spaces',
  mixins: [recordMixin]
}
</script>
<style lang="scss" scoped>
.item {
  height: 40px;
  line-height: 40px;
  font-size: 14px;
  color: white;
  padding: 0 5px;
  border: 1px solid transparent;
  border-radius: 2px;
  text-align: center;
  margin-bottom: 10px;
  cursor: pointer;
  &:hover {
    border-color: #1ab394;
  }
}
</style>
